package org.sean.fugao.data.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class PurchaseHistory implements Serializable{

	private Integer purchaseHisotryId; // INT(11) NOT NULL AUTO_INCREMENT ,
	private Employee operateEmployee; // INT(11) NOT NULL ,
	private Date purchaseDate; // DATETIME NOT NULL ,
	private BigDecimal totalAmount = BigDecimal.ZERO;
	private Vender vender; // INT(11) NULL DEFAULT NULL ,
	private String comments; // VARCHAR(1000) NULL DEFAULT NULL ,
	
	//collection attribute
	private List<PurchaseHistoryDetail> purchaseHistoryDetails = new ArrayList<PurchaseHistoryDetail>();

	public Integer getPurchaseHisotryId() {
		return purchaseHisotryId;
	}

	public void setPurchaseHisotryId(Integer purchaseHisotryId) {
		this.purchaseHisotryId = purchaseHisotryId;
	}

	public Employee getOperateEmployee() {
		return operateEmployee;
	}

	public void setOperateEmployee(Employee operateEmployee) {
		this.operateEmployee = operateEmployee;
	}

	public Date getPurchaseDate() {
		return purchaseDate;
	}

	public void setPurchaseDate(Date purchaseDate) {
		this.purchaseDate = purchaseDate;
	}

	public BigDecimal getTotalAmount() {
		return totalAmount;
	}

	public void setTotalAmount(BigDecimal totalAmount) {
		this.totalAmount = totalAmount;
	}

	public Vender getVender() {
		return vender;
	}

	public void setVender(Vender vender) {
		this.vender = vender;
	}

	public String getComments() {
		return comments;
	}

	public void setComments(String comments) {
		this.comments = comments;
	}

	public List<PurchaseHistoryDetail> getPurchaseHistoryDetails() {
		return purchaseHistoryDetails;
	}

	public void setPurchaseHistoryDetails(
			List<PurchaseHistoryDetail> purchaseHistoryDetails) {
		this.purchaseHistoryDetails = purchaseHistoryDetails;
	}
}
